﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Global
{
    /// <summary>
    /// 模拟运行支持
    /// </summary>
    public partial class ServiceProvider
    {
        private static bool _isSimulate = false;
        /// <summary>
        /// 演示模式
        /// </summary>
        public static bool IsSimulate
        {
            get
            {
                return _isSimulate;
            }
            set
            {
                _isSimulate = value;
            }
        }
        private static int simulateSleepTime = 3000;
        /// <summary>
        /// 演示停顿时间
        /// </summary>
        public static int SimulateSleepTime
        {
            get
            {
                return simulateSleepTime;
            }
        }
        //static int _deliverWareSleepTime = 3000;
        //static int _reagent1SleepTime = 65000;
        //static int _reagent2SleepTime = 30000;
        //static int _washTankSleepTime = 130000;
        //static int _substratSleepTime = 30000;
        //static int _detectionHoouseSleepTime = 30000;
        //static int _recyleBinSleepTime = 2000;
        static int _deliverWareSleepTime = 1000;
        static int _reagent1SleepTime = 5000;
        static int _reagent2SleepTime = 3000;
        static int _washTankSleepTime = 13000;
        static int _substratSleepTime = 3000;
        static int _detectionHoouseSleepTime = 3000;
        static int _recyleBinSleepTime = 2000;
        static double _forwardTimes=0.1;
        /// <summary>
        /// 快进速度
        /// </summary>
        public static double ForwardTimes
        {
            get
            {
                return _forwardTimes;
            }
        }
        /// <summary>
        /// 反应条传送停顿时间
        /// </summary>
        public static int DeliverWareSleepTime
        {
            get
            {
                return int.Parse((_deliverWareSleepTime*ForwardTimes).ToString());
            }
        }
        /// <summary>
        /// 加试剂1演示停顿时间
        /// </summary>
        public static int Reagent1SleepTime
        {
            get
            {
                return int.Parse((_reagent1SleepTime * ForwardTimes).ToString());
            }
        }
        
        /// <summary>
        /// 加试剂2演示停顿时间
        /// </summary>
        public static int Reagent2SleepTime
        {
            get
            {
                return int.Parse((_reagent2SleepTime * ForwardTimes).ToString());
            }
        }
        /// <summary>
        /// 洗涤槽演示停顿时间
        /// </summary>
        public static int WashTankSleepTime
        {
            get
            {
                return int.Parse((_washTankSleepTime * ForwardTimes).ToString());
            }
        }
        /// <summary>
        /// 加底物演示停顿时间
        /// </summary>
        public static int SubstractSleepTime
        {
            get
            {
                return int.Parse((_substratSleepTime * ForwardTimes).ToString());
            }
        }
        /// <summary>
        /// 检测仓演示停顿时间
        /// </summary>
        public static int DetectionHoouseSleepTime
        {
            get
            {
                return int.Parse((_detectionHoouseSleepTime * ForwardTimes).ToString());
            }
        }
        /// <summary>
        /// 回收仓演示停顿时间
        /// </summary>
        public static int RecyleBinSleepTime
        {
            get
            {
                return int.Parse((_recyleBinSleepTime * ForwardTimes).ToString());
            }
        }
    }
}
